package com.example.liwushuo.urls;

import com.example.liwushuo.utils.Utils;

public class urls {

	public final static String SDK_IMG = "TTGY";
	public final static String ROOT_IMG = "com.example.tiantinaguoyuan";
	public final static String IMAGE = "image";

	// 商品详情的接口
	public static String GoodsInfo = "http://api.liwushuo.com/v2/items/";

	// 评论的接口
	public static String getGoodsInfoTallUrl(long id) {
		return "http://api.liwushuo.com/v2/items/" + id
				+ "/comments?offset=0&limit=20";
	}

	// 图片详情的接口

	public static String getOneImageUrl = "http://www.liwushuo.com/items/";

	public static String getHomeUrl(long id, String gender, String generation) {
		return "http://api.liwushuo.com/v2/channels/" + id
				+ "/items?limit=20&offset=0&gender=" + gender + "&generation="
				+ generation;
	}

	// 滚动条的数据接口
	public static String ViewPagerUrl = "http://api.liwushuo.com/v2/banners";

	// 下面GridView的接口

	public static String getGridViewUrl(String gender, String generation) {

		return "http://api.liwushuo.com/v2/promotions?gender=" + gender
				+ "&generation=" + generation;

	}

	// 美丽小物的接口
	public static String getLittleGoodsUrl = "http://api.liwushuo.com/v2/collections/22/posts?limit=20&offset=0";

	// 攻略专题的接口
	public static String getGLZTUrl = "http://api.liwushuo.com/v1/collections?offset=40&limit=20";

	// 天天刮奖的接口
	public static String getTTGJUrl = "http://event.liwushuo.com/topics/daily-lucky";

	// 首页listView的点击详情的接口
	public static String getItemUrl = "http://www.liwushuo.com/posts/";

	// 搜索的接口
	public static String getSearchUrl(String key) {

		return "http://api.liwushuo.com/v2/search/item?keyword=" + key
				+ "&sort=&offset=0&limit=20";
	}

}
